Dynamic Attribute Grammars Dynamic Attribute Grammars Les Grammaires Attribuues Dynamiques

نویسندگان

  • Gilles Roussel
  • Martin Jourdan
  • Étienne Duris
  • Didier Parigot
چکیده

Although Attribute Grammars were introduced long ago, their lack of expressive-ness has resulted in limited use outside the domain of static language processing. With the new notion of Dynamic Attribute Grammars deened on top of Grammar Couples, informally presented in a previous paper, we show that it is possible to extend this expressiveness and to describe computations on structures that are not just trees, but also on abstractions allowing for innnite structures. The result is a language that is comparable in power to most rst-order functional languages, with a distinctive declarative character. In this paper, we give a formal deenition of Dynamic Attribute Grammars and show how to construct eecient visit-sequence-based evaluators for them, using traditional, well-established AG techniques (in our case, using the Fnc-2 system *). The major contribution of this approach is to restore the intrinsic power of Attribute Grammars and re-emphasize the eeectiveness of analysis and implementation techniques developed for them. RRsumm : Bien que les grammaires attribuues aient tt introduites il y a longtemps, leur manque de pouvoir d'expression les a connnnes dans le domaine du traitement statique des langages de programmation. Avec les nouvelles notions de grammaires attribuues dynamiques dddnies sur des couples de grammaires, prrsenttes informellement dans une prrccdente publication , nous montrons qu'il est possible d''tendre cette expressivitt et de ddcrire des calculs sur des structures qui ne sont pas uniquement des arbres, mais des abstractions qui rendent compte de structures innnies. Nous obtenons ainsi un langage dont le pouvoir d'expression est comparable celui de la plupart des langages fonctionnels du premier ordre, avec un cctt ddclaratif beaucoup plus marquu. Dans ce rapport, nous donnons la dddnition formelle des grammaires attribuues dynamiques et montrons comment construire pour elles des valuateurs eecaces base de ssquences de visites, en utilisant des techniques traditionnelles et prouves (dans notre cas, en utilisant notre systtme Fnc-2 **). La principale contribution de cette approche est de redonner toute leur puissance d'expression aux grammaires attribuues et de mettre en lumiire l'eecacitt des techniques d'analyse et d'implantation qui ont tt ddveloppes pour elles.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Attribute Grammars and Folds : Generic Control Operators

Generic control operators, such as fold, have been introduced in functional programming to increase the power and applicability of data-structure-based transformations. This is achieved by making the structure of the data more explicit in program speciications. We argue that this very important property is one of the original concepts of attribute grammars. In this paper, we informally show the...

متن کامل

Attribute Grammars and Automatic Complexity Analysis Attribute Grammars and Automatic Complexity Analysis Attribute Grammars and Automatic Complexity Analysis

Decomposable combinatorial structures have been well studied and a systematic manner for determining generating function equations is well known. Attribute grammars have enhanced the study of context-free grammars by giving meaning to constructions. Delest and F edou 2] showed that attribute grammars extend to combinatorial structures, with applications to random generation. In a similar way, w...

متن کامل

Static and Dynamic Coupling Attribute Evaluators

Several years ago, the notion of attribute coupled grammars was introduced by Ganzinger and Giegerich 5], together with their descriptional composition. The latter works essentially at the speciication level, i.e., it produces an attribute grammar which speciies the composition of two attribute coupled grammars. We introduce a new approach to this composition of attribute coupled grammars. It n...

متن کامل

Attribute Grammars: a Declarative Functional Language

Although Attribute Grammars were introduced thirty years ago, their lack of expressiveness has resulted in limited use outside the domain of static language processing. In this paper we show that it is possible to extend this expressiveness. We claim that Attribute Grammars can be used to describe computations on structures that are not just trees, but also on abstractions allowing for innnite ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1996